/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_TEA_H
#define DESIGNPATTERN_TEA_H

#include <iostream>

namespace TemplateMethod_SB {

    class Tea {
    public:

        void prepareRecipe() {
            boilWater();
            steepTeaBag();
            pourInCup();
            addLemon();
        }

        void boilWater() {
            std::cout << "Boiling water" << std::endl;
        }

        void steepTeaBag() {
            std::cout << "Steeping the tea" << std::endl;
        }

        void addLemon() {
            std::cout << "Adding Lemon" << std::endl;
        }

        void pourInCup() {
            std::cout << "Pouring into cup" << std::endl;
        }

    };

} // TemplateMethod_SB

#endif //DESIGNPATTERN_TEA_H
